package com.lc.cms.dao;

import com.lc.cms.dto.CreateRoleDto;
import com.lc.cms.dto.RolePermissionDto;
import com.lc.cms.model.RoleModel;
import org.springframework.stereotype.Repository;

@Repository
public interface IRoleDao {

    int create(RoleModel role);

    int createDepartmentRole(CreateRoleDto role);

    int update(RoleModel role);

    int delete(int roleId);

    int deleteUserRoleByRoleId(int roleId);

    int deleteDepartmentRoleByRoleId(int roleId);

    int deleteRolePermissionByRoleId(int roleId);

    int createRolePermission(RolePermissionDto role);
}
